package com.qfedu.mtl.dao;

import com.qfedu.mtl.dto.BasicDto;
import com.qfedu.mtl.entity.BasicInfo;
import com.qfedu.mtl.entity.InfoDetail;
import com.qfedu.mtl.query.BasicQuery;
import com.qfedu.mtl.query.SelectQuery;

import java.util.List;

public interface BasicDao {
    int add(BasicDto dto);

    int delete(int id);
    //批量删除 类目
    int deleteBatch(List<Integer> idsss);

    BasicInfo select(Integer id);

    int update(BasicDto dto);

    List<InfoDetail> findDetail(Integer id);

    List<BasicInfo> selectAll();


    int addDetail(InfoDetail infoDetail);

    int deleteDetail(Integer id);
    //选项的批量删除
    int deleteBatch2(List<Integer> idsss);


    int updateDetail(InfoDetail infoDetail);


    int getPrice(int g_id, int id);

    //根据id找基本价格
    int findBasicPrice(int g_id);

    List<BasicInfo> selectData(Integer page, Integer size, BasicQuery query);

    Integer selectTotal(BasicQuery query);

    List<InfoDetail> selectData2(Integer page, Integer size, SelectQuery query);

    Integer selectTotal2(SelectQuery query);


    List<InfoDetail> selectData3(int id, Integer page, Integer size, SelectQuery query);

    Integer selectTotal3(int id,SelectQuery query);
}
